<template>
	<view class="main">
		<view class="title">
			<text class="title-first">添加银行卡</text>
			<text class="title-explain">翔瑞金融钱包保障您的信息安全</text>
		</view>
		<view class="bankCardTitle">
			<text class="bank-title">银行卡号</text>
			<text class="bank-explain">支持的银行</text>
		</view>
		<view class="bankNumber">
			<input type="text" placeholder="请输入你的银行卡号" class="bankInput">
			<image src="../../static/bankCard/bankWen.png" class="bankImg"></image>
		</view>
		<view class="hr"></view>
		<view class="bank-btn" @tap="verifyBankCard">
			<image src="../../static/bankCard/bank_yanzheng.png" mode="" class="bank_yanzheng"></image>
			<text class="btn-title"> 验证银行卡卡号 </text>

		</view>
		<view class="recommend-choose"> 推荐选择 </view>
		<view class="footer">
			<view class="footer-title">
				<text class="title-first">快速绑卡,无需手动输入卡号</text>
				<text class="title-explain">已和以下银行合作</text>
			</view>
			<view class="hr"></view>
			<view class="li">
				<view class="bank">
					<image src="../../static/bankCard/bank_ico.png" mode="" class="bank_ico"></image>
					<text class="bank_name">建设银行</text>
				</view>
				<i class="cuIcon-right"></i>
			</view>
			<view class="li">
				<view class="bank">
					<image src="../../static/bankCard/bank_ico.png" mode="" class="bank_ico"></image>
					<text class="bank_name">建设银行</text>
				</view>
				<i class="cuIcon-right"></i>
			</view>
			<view class="li">
				<view class="bank">
					<image src="../../static/bankCard/bank_ico.png" mode="" class="bank_ico"></image>
					<text class="bank_name">建设银行</text>
				</view>
				<i class="cuIcon-right"></i>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {};
		},
		methods: {
			verifyBankCard(){
				uni.navigateTo({
					url:'../verifyBankCard/verifyBankCard'
				})
			}
		},
		onLoad(options) {
			uni.setNavigationBarTitle({
				title: "购买" + options.title,
				
			});
			uni.setNavigationBarColor({
			    frontColor:'#000000',
			    backgroundColor:'#ffffff'
			})
		},
	};
</script>

<style lang="scss">
	$font-color: #999999;
	$font-size: 24upx;
	$font-size-ctn: 28upx;
	$title-font-size: 48upx;
	$border-raduis: 10upx;

	.main {
		padding: 0 40upx;

		.hr {
			height: 2upx;
			width: 100%;
			background-color: #e7e7e7;

		}

		.title {
			display: flex;
			flex-direction: column;
			margin: 70upx 0 70upx 0;

			.title-first {
				font-size: 40upx;
				color: #333;
				font-weight: bold;
				margin-bottom: 24upx;
			}

			.title-explain {
				font-size: 28upx;
				color: #999;
			}
		}

		.bankCardTitle {
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 28upx;
			color: #333;
			margin-bottom: 20upx;
		}

		.bankNumber {
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 32upx;

			.bankImg {
				width: 32upx;
				height: 32upx;
			}

			.bankInput {
				height: 80upx;
				padding: 20upx 0;
			}
		}

		.bank-btn {
			display: flex;
			justify-content: center;
			align-items: center;
			width: 100%;
			height: 88upx;
			font-size: 28upx;
			color: #fff;
			background-color: #3476f1;
			border-radius: 12upx;
			margin-top: 40upx;

			.bank_yanzheng {
				position: relative;
				top: 2upx;
				width: 25upx;
				height: 28upx;
				margin-right: 10upx;
			}
		}

		.recommend-choose {
			margin: 40upx 0;
			font-size: 28upx;
			color: #333;
		}

		.footer {
			display: flex;
			flex-direction: column;
			position: relative;
			padding: 40upx;
			border-radius: 12upx;
			box-shadow: 0 0 16upx 0upx rgba(0, 0, 0, 0.1);

			.footer-title {
				display: flex;
				flex-direction: column;

				.title-first {
					font-size: 32upx;
					color: #333;
					font-weight: bold;
				}

				.title-explain {
					font-size: 28upx;
					color: #999;
					margin-top: 12upx;
					margin-bottom: 30upx;
				}
			}

			.li {
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 30upx 0;
				border-bottom: 1upx solid #e7e7e7;
				font-size: 32upx;
				color: #333;
				font-weight: bold;

				.bank {
					display: flex;
					align-items: center;

					.bank_ico {
						position: relative;
						top: 2upx;
						width: 30upx;
						height: 30upx;
						margin: 20upx;
					}
				}

			}
		}
	}
</style>
